package com.zjj.learn.designmodel.pattern.factory.config_factory;

/**
 * *** @author zjj_admin
 * *** 2022/4/7 9:38
 */
public class ConfigFactoryTest {

    public static void main(String[] args) {
        Coffee coffee = CoffeeFactory.createCoffee("america");
        System.out.println(coffee.getName());

        System.out.println("=====================");

        Coffee coffee1 = CoffeeFactory.createCoffee("latte");
        System.out.println(coffee1.getName());

    }
}
